package com.api.shopapi.service.impl;

import com.api.shopapi.entity.SBJSleepDuration;
import com.api.shopapi.mapper.SBJSleepDurationMapper;
import com.api.shopapi.service.SBJSleepDurationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("SBJSleepDurationServiceImplOne")
public class SBJSleepDurationServiceImpl implements SBJSleepDurationService {

    @Autowired
    private SBJSleepDurationMapper sbjSleepDurationMapper;

    @Override
    public int insert(SBJSleepDuration sleepDuration) {
        return sbjSleepDurationMapper.insert(sleepDuration);
    }

    @Override
    public List<SBJSleepDuration> getListBySleepReportCode(String sleepReportCode) {
        return sbjSleepDurationMapper.getListBySleepReportCode(sleepReportCode);
    }
}
